<body style="background-color: white">
 <div id="1" style="width: 50%; height: 50%; background-color: green"/>
 <script>
  function resizeDiv() {
      document.getElementById("1").setAttribute("style", "width: 150%; height: 150%; background-color: green");
  }
 </script>
</body>
